#ifndef WINDOWINSTANCE_H
#define WINDOWINSTANCE_H
#include "mainwindow.h"

#define DEFAULT_RES_PATH  "../../work/cocos2d-sceneeditor/Resources"
#define   EDITOR_WINDOW_TITLE "Cocos2d-x Scene Editor v1.0.0"
class ConstantManager
{
public:
	ConstantManager();
    MainWindow  * m_qWindow ; 
    char * m_resourcePath;
	QString  m_qWinTitle;
	QString  m_currentProjFile;
    bool m_saved;
    void setSaved(bool bl);
    bool getSaved();
    //get MainWindow Handle
    MainWindow * qWindow();
    
    // get Resource Path 
    char* getResourcePath()
    {
        return m_resourcePath;
    }
    
	void setMainWindow(MainWindow *wid);
    
    static ConstantManager * sharedManager();
	void setCurrentProjPath( QString filename );

	QString getCurrentProjPath();

};

#endif // WINDOWINSTANCE_H
